package blJunitTest;

import static org.junit.Assert.*;

import java.util.ArrayList;

import org.junit.After;
import org.junit.AfterClass;
import org.junit.Before;
import org.junit.BeforeClass;
import org.junit.Test;

import po.TeachingRecordPO;

import bl.TeachingRecordBLImpl;

public class TeachingRecordBLImplTest {

	@BeforeClass
	public static void setUpBeforeClass() throws Exception {
	}

	@AfterClass
	public static void tearDownAfterClass() throws Exception {
	}

	@Before
	public void setUp() throws Exception {
	}

	@After
	public void tearDown() throws Exception {
	}

	@Test
	public void testGetTeachingRecordByCourseID() {
//		fail("Not yet implemented");
		ArrayList<TeachingRecordPO> teachingRecordList = null;
		int courseID = 1;
		assertEquals(new TeachingRecordBLImpl().getTeachingRecordByCourseID(courseID), teachingRecordList);
	}

	@Test
	public void testAddTeachingRecord() {
//		fail("Not yet implemented");
		int CourseID = 1;
		int TeacherID = 2;
		assertEquals( new TeachingRecordBLImpl().addTeachingRecord(CourseID, TeacherID), 1);
	}

}
